package com.taxshare.seller.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.taxshare.mybatis.entity.BaseEntity;
import com.taxshare.seller.constant.table.TableConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.EqualsAndHashCode;

/**
 * @author YANG
 * @ClassName: DocumentInfoDetailEntity
 * @Description:
 * @date 2021-05-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(TableConstant.T_SELLER_DOCUMENT_INFO_DETAIL)
@ApiModel(description = "明源地产单据明细表")
public class DocumentInfoDetailEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId("uuid")
    private String uuid;
    /**
     * 票据GUID
     */
    @ApiModelProperty("票据GUID")
    @TableField("doc_id")
    private String docId;
    /**
     * 款项类别
     */
    @ApiModelProperty("款项类别")
    @TableField("payment_category")
    private String paymentCategory;
    /**
     * 款项类型
     */
    @ApiModelProperty("款项类型")
    @TableField("payment_type")
    private String paymentType;
    /**
     * 款项名称
     */
    @ApiModelProperty("款项名称")
    @TableField("payment_name")
    private String paymentName;
    /**
     * 规格型号
     */
    @ApiModelProperty("规格型号")
    @TableField("item_spec")
    private String itemSpec;
    /**
     * 单位
     */
    @ApiModelProperty("单位")
    @TableField("quantity_unit")
    private String quantityUnit;
    /**
     * 数量
     */
    @ApiModelProperty("数量")
    @TableField("quantity")
    private Double quantity;
    /**
     * 税率
     */
    @ApiModelProperty("税率")
    @TableField("tax_rate")
    private Double taxRate;
    /**
     * 不含税单价
     */
    @ApiModelProperty("不含税单价")
    @TableField("unit_price_out_tax")
    private Double unitPriceOutTax;
    /**
     * 不含税金额
     */
    @ApiModelProperty("不含税金额")
    @TableField("amount_without_tax")
    private Double amountWithoutTax;
    /**
     * 税额
     */
    @ApiModelProperty("税额")
    @TableField("tax_amount")
    private String taxAmount;
    /**
     * 含税金额
     */
    @ApiModelProperty("含税金额")
    @TableField("amount_with_tax")
    private Double amountWithTax;
    /**
     * 税率标识(0:正常税率;1：免税2：不征税3：普通零税率)
     */
    @ApiModelProperty("税率标识(0:正常税率;1：免税2：不征税3：普通零税率)")
    @TableField("tax_rate_flag")
    private String taxRateFlag;

    @ApiModelProperty("数据来源（0-> 同步  1-> 手动添加)")
    @TableField("data_source")
    private String dataSource;
}